package com.tim.app.server.result;

import java.io.Serializable;

public class ResponseResult implements Serializable {

    private static final long serialVersionUID = 7386101989354922441L;
    private int status;
    private String message;
    private int total;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    /**
     * 服务器的错误码
     */
    public interface ResultStatus {

        // TODO 需要跟服务器接口一致
        public static final int OK = 10000;// 成功
        public static final int UN_REGIST = 123700;//未注册
        public static final int HAS_BIND = 123500;//已绑定
        public static final int REPEAT_ACTION = 129000;//重复操作
        public static final int BE_ADD_BLACK = 140100;//被拉黑
        public static final int SUSPENED = 144444;//被封停
        public static final int DELETED = 155555;//删除
        int DONE=140004;//已经操作
    }

}
